package com.ebring.shareEducation.service;

import com.ebring.shareEducation.bean.Transaction;
import com.ebring.shareEducation.utils.RspMsg;

import java.math.BigDecimal;
import java.util.List;

public interface TransationService {

    /**
     * 新增交易记录
     */
    RspMsg<Transaction> insertTrade(String userid, String userids, BigDecimal amount, String bankid, String bid, Integer type);

    /**
     * 更新交易记录
     */
    RspMsg<Transaction> updateTrade(Transaction transaction);

    /**
     * 通过id查找交易记录
     */
    RspMsg<Transaction> selectTradeById(String id);

    /**
     * 批量删除交易记录
     */
    RspMsg<Transaction> DeleteTrade(String[] Id);




    /**
     * 确认到账
     */
    RspMsg<Transaction> updateTran(String id);

    /**
     * 未打款
     */
    RspMsg<Transaction> updateTrans(String id);




    /**
     * 查找所有交易记录
     */
    RspMsg<Transaction> selectTradefind();



    /**
     * 根据多条件模糊查询
     *
     * @param traderecords

     * @return
     */
    RspMsg<List<Transaction>> findTrade(Transaction traderecords);


}
